import icon from './icon/icon.vue'
import scroll from './scroll/scroll.vue'
import bubble from './bubble/bubble.vue'
import SlGutter from './sl-gutter/sl-gutter'

const install = function (Vue, config = {}) {
  if (install.installed) return;
  Vue.component(icon.name, icon);
  Vue.component(scroll.name, scroll);
  Vue.component(bubble.name, bubble);
  Vue.component(SlGutter.name, SlGutter);
};

if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue)
}

export default {
  install
}
